﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dxr.Police.IACS.Models;


namespace Dxr.Police.IACS.FullText
{
    public class ShuangShiSource : DataSourceBase<Models.shuangshixinxibiao>
    {
        public ShuangShiSource()
            : base()
        {
        }

        protected override void OnResultBuilded(shuangshixinxibiao t, FullTextModel model)
        {
            base.OnResultBuilded(t, model);

            model.Longitude = t.zuobiaox;
            model.Latitude = t.zuobiaoy;
            model.ShowPoint = !string.IsNullOrEmpty(t.zuobiaox) && !string.IsNullOrEmpty(t.zuobiaoy);
        }

        public override int ImportFromExcel(string path, DataType type, Dxr.Police.Models.UserInfo user)
        {
            throw new ImportException("该项数据不允许导入");
        }
    }
}
